/* 页面缩放修复和大小统一样式 */

/* 覆盖视口元标签设置，确保所有浏览器使用相同的缩放级别 */
@-ms-viewport {
    width: device-width;
    zoom: 1.0;
    user-zoom: fixed;
}

@viewport {
    width: device-width;
    zoom: 1.0;
    user-zoom: fixed;
}

/* 确保页面基础缩放为100% */
html, body {
    zoom: 1;
    -ms-zoom: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px; /* 基础字体大小 */
    text-size-adjust: 100%; /* 防止浏览器自动调整文本大小 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* 统一容器大小 */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* 统一卡片大小和间距 */
.card {
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* 统一标题大小 */
.title {
    font-size: 20px !important;
    line-height: 1.4 !important;
}

.subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.section-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 20px 0 15px !important;
}

.card-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* 统一表格样式 */
table {
    width: 100% !important;
    table-layout: fixed;
}

th, td {
    padding: 10px !important;
    font-size: 14px !important;
}

/* 统一按钮大小 */
.btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* 统一图表容器大小 */
.chart-container {
    height: 300px !important;
    width: 100% !important;
}

/* 统一边距和内边距 */
.content-wrapper {
    padding: 20px !important;
}

/* 统一图标大小 */
.sidebar-menu ul li a i,
.card-title i,
.btn i {
    font-size: 16px !important;
}

/* 统一指标卡片 */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
}

.metric-card {
    height: auto !important;
    min-height: 160px !important;
}

.metric-value {
    font-size: 24px !important;
}

/* 统一版本卡片 */
.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 20px !important;
}

.version-card {
    height: auto !important;
}

/* 确保模型详情页面内容统一 */
.model-architecture {
    display: flex;
    flex-direction: column;
}

.model-placeholder {
    height: 280px !important;
}

/* 确保模型配置页面表单统一 */
.config-form {
    display: flex;
    flex-direction: column;
}

.config-group {
    width: 100% !important;
    box-sizing: border-box;
}

.config-item {
    display: grid;
    grid-template-columns: 20% 30% 50% !important;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .config-item {
        grid-template-columns: 1fr !important;
    }
    
    .update-grid {
        grid-template-columns: 1fr !important;
    }
    
    .metrics-container {
        grid-template-columns: 1fr !important;
    }
    
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
} 